import { _decorator, Component, Node, UITransform, Sprite, Animation, SpriteFrame, AnimationClip, animation } from 'cc'


import { SubStateMchine } from './SubStateMchine'

import { DIRECTION, PLAYER_STATE_TYPE_ENUM } from '../Enums'


export class DirectionStateMchine extends SubStateMchine {
  run () {
    const value = this.fsm.getPramers(PLAYER_STATE_TYPE_ENUM.DIRECTION)
    this.currentState = this.stateMachines.get(value as DIRECTION)
  }
}
